package com.xyz.rok.tools.controller;

import com.xyz.rok.tools.model.Result;
import com.xyz.rok.tools.model.Union;
import com.xyz.rok.tools.model.UnionMember;
import com.xyz.rok.tools.service.ServerService;
import com.xyz.rok.tools.service.UnionMemberService;
import com.xyz.rok.tools.service.UnionService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;

/**
 * @author ZhangYiXin
 * @version 1.0
 * @date 2021/5/12 14:24
 **/
@Slf4j
@RestController
@RequestMapping("/api/server")
public class ServerController {
    @Autowired
    private ServerService serverService;


    @GetMapping("/list")
    public Result list() {
        return Result.success(serverService.selectAll());
    }

}
